Skip to main content

menuLines

Type

property

Summary

Specifies the number of visible lines in a drop-down list menu belonging to a button.

Syntax

set the menuLines of <button> to <number>

Description

Use the menuLines property to control the appearance of combo box or option menus.

When a menu containing a drop-down list opens, it displays a fixed number of lines (with a scrollbar to access any additional lines). The menuLines property specifies how many lines are displayed at a time.

This property affects only buttons whose menuMode property is set to "option" (on Unix and Windows systems only) or "comboBox". Other menu types are not affected by the setting of the menuLines.

If the button's style property is not menu, the setting of the menuLines property has no effect.

Examples

set the menuLines of button "Options" to 10

object: button

property: menuMode

command: option

function: menus

glossary: property, Unix, Windows, combo box

keyword: integer, menu, button

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?